home *** CD-ROM | disk | FTP | other *** search
- <WIZIF 0>
- <!-- Copyright (c) 1997-2001 Macromedia, Inc. All Rights Reserved. Consult Software License Agreement for more details. Version 1.0 - 2001-05-25 -->
- Input: var = value copied from that entered in UI for control height; assumed to be numeric here
- Output: LFHEIGHT attribute with value based on dropHeight - if var > 0
- </WIZIF>
-
- <WIZIF var GT 0>
- <WIZSET factHeight = 1.18>
-
- <WIZSET LFHeight = (var * factHeight)>
- <WIZSET PosDecPt = Find(LFHeight,'.')>
- <WIZIF PosDecPt EQ 0 AND Find(LFHeight,',')><WIZSET PosDecPt = Find(LFHeight,',')></WIZIF>
- <WIZIF PosDecPt GT 0>
- <WIZIF Mid(LFHeight,PosDecPt + 1,1) GT 4>
- <WIZSET LFHeight = Left(LFheight,PosDecPt - 1) +1>
- <WIZELSE>
- <WIZSET LFHeight = Left(LFHeight,PosDecPt - 1)>
- </WIZIF>
- </WIZIF>
-
- <WIZIF 1>$$SpacingGap$${DefaultCase('LFHEIGHT')}=$$LFHeight</WIZIF>
- </WIZIF>
-